package com.tb.tbv1productservice.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.tb.v1.api.shoop.ISpCategoryService;
import com.tb.v1.common.base.BaseServiceImpl;
import com.tb.v1.common.base.IBaseDao;
import com.tb.v1.entity.SpCategory;
import com.tb.v1.mapper.SpCategoryMapper;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;

/**
 * @author: tangBin
 * @Date: 2020/7/20 0020 15:41
 * @Description:
 */
@Service
public class SpCategoryService extends BaseServiceImpl<SpCategory> implements ISpCategoryService {
    @Autowired
    private SpCategoryMapper spCategoryMapper;

    @Override
    public IBaseDao<SpCategory> getBaseDao() {
        return spCategoryMapper;
    }

    @Override
    public List<SpCategory> getCategoryList(Map map) {
        return spCategoryMapper.getCategoryList(map);
    }

    @Override
    public Integer getCategoryListCount(Map map) {
        return spCategoryMapper.getCategoryListCount(map);
    }
}
